//
//  FitOfScreen.h
//
//  Created by rimi on 16/3/1.
//

#ifndef FitOfScreen_h
#define FitOfScreen_h
#import <UIKit/UIKit.h>

#define LRLCurrentScreenWidth [UIScreen mainScreen].bounds.size.width //当前屏宽
#define LRLCurrentScreenHeight [UIScreen mainScreen].bounds.size.height //当前屏高

#define iPhone5Width   320
#define iPhone5Height  568
#define LRLRadioWidth LRLCurrentScreenWidth/iPhone5Width
#define LRLRadioHeight LRLCurrentScreenHeight/iPhone5Height

CG_INLINE CGPoint LRLCGPointMake(CGFloat x, CGFloat y) {
  
    return CGPointMake(x*LRLRadioWidth, y*LRLRadioHeight);
}

CG_INLINE CGRect LRLCGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height) {
  
    return CGRectMake(x*LRLRadioWidth, y*LRLRadioHeight, width*LRLRadioWidth, height*LRLRadioHeight);
}

#endif /* FitOfScreen_h */
